﻿@model IEnumerable<MvcApplication6.Models.EventModel>
@using MvcApplication6.Models
@using MvcApplication6.common
<br><br><br><br>
<div id='carousel_container'>
<div id='left_scroll'><img src="../../Upload/Images/btn-pre.jpg" /></div>
<div id='carousel_inner'>
    <ul id='carousel_ul'>
        @foreach(var item in Model) {
            <li>
                    @Ajax.ImageActionLink(
                 "../../Upload/Images/" + item.Image,
                    "",
                    "NewDetail",
                    new
                    {
                        Id = item.Id
                    },
                    new AjaxOptions
                    {
                        HttpMethod = "GET",
                        InsertionMode = InsertionMode.Replace,
                        UpdateTargetId = "listProduct"
                    }
                    )
            </li>
        }

     @*   <li><a href='#'><img src='../../Upload/images/item1.jpg' /></a></li>
        <li><a href='#'><img src='../../Upload/images/a.png' /></a></li>
        <li><a href='#'><img src='../../Upload/images/item3.jpg' /></a></li>
        <li><a href='#'><img src='../../Upload/images/item1.jpg' /></a></li>
        <li><a href='#'><img src='../../Upload/images/a.png' /></a></li>
        <li><a href='#'><img src='../../Upload/images/item3.jpg' /></a></li>
        <li><a href='#'><img src='../../Upload/images/item1.jpg' /></a></li>
        <li><a href='#'><img src='../../Upload/images/a.png' /></a></li>
        <li><a href='#'><img src='../../Upload/images/item3.jpg' /></a></li>*@
    </ul>
</div>
<div id='right_scroll'><img src='../../Upload/images/btn-next.jpg' /></div>
</div>
<div class="clear"></div>